﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace _0712518_0712510_LTGame
{
    public class VisibleGameObject
    {
        //Instance an array of my sprite
        public MySprite[] _sprite;

        //Instance amount of my sprite;
        public int _nsprite;

        private float _x;

        public float X
        {
            get { return _x; }
            set 
            {
                _x = value;
                //Assign all my sprite into cordinate X
                for (int i = 0; i < _nsprite; i++)
                {
                    _sprite[i].X = _x;
                }
            }
        }

        private float _y;

        public float Y
        {
            get { return _y; }
            set 
            { 
                _y = value;
                //Assign all my sprite into cordinate Y
                for (int i = 0; i < _nsprite; i++)
                {
                    _sprite[i].Y = _y;
                }
            }
        }

        //Draw method using draw my sprite
        public void Draw(GameTime gameTime, SpriteBatch _spritePatch)
        {
        }

        //Update the my sprite's drawing
        public void Update()
        {
        }

        
    }
}
